package com.hundredapp.oa.web;

import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.hundredapp.oa.domain.OaUser;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@Repository
@Scope("prototype")
public class Logout extends ActionSupport {
	
	private String errorinfo = "已成功退出系统，请重新登陆。";
	
	public String execute() {
		Map<String, Object> session_map = ActionContext.getContext().getSession();
		session_map.put("lgoin_user_id", null);
		return SUCCESS;
	}

	public String getErrorinfo() {
		return errorinfo;
	}

	public void setErrorinfo(String errorinfo) {
		this.errorinfo = errorinfo;
	}
}
